﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_MENU_TYPE
// * CreateDate    : 2011/7/14 16:40:25
// * Creater       : CodeSmith
// * LastChangeDate: 2011/7/14 16:40:25
// * LastChanger   : 2011/7/14 16:40:25
// * Version Info  : 1.0 For ESOL
// ******************************************************************

// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_MENU_TYPE
// * CreateDate    : 2011/8/5 11:32:34
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/5 11:32:34
// * LastChanger   : 2011/8/5 11:32:34
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class SecMenuTypeEntity : EntityBase
    {
        public SecMenuTypeTable TableSchema
        {
            get
            {
                return SecMenuTypeTable.Current;
            }
        }

        public SecMenuTypeEntity()
        {

        }

        public SecMenuTypeEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.MenuTypeCode = Convert.ToString(CommonFunctions.ToObject(dr["MENU_TYPE_CODE"]));
            this.MenuTypeName = Convert.ToString(CommonFunctions.ToObject(dr["MENU_TYPE_NAME"]));
            this.IsDelete = Convert.ToString(CommonFunctions.ToObject(dr["IS_DELETE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SecMenuTypeTable.Current;
            }
        }

        #region Perporty List
        public string MenuTypeCode
        {
            get { return Convert.ToString(GetData(SecMenuTypeTable.C_MENU_TYPE_CODE)); }
            set { SetData(SecMenuTypeTable.C_MENU_TYPE_CODE, value); }
        }

        public string MenuTypeName
        {
            get { return Convert.ToString(GetData(SecMenuTypeTable.C_MENU_TYPE_NAME)); }
            set { SetData(SecMenuTypeTable.C_MENU_TYPE_NAME, value); }
        }

        public string IsDelete
        {
            get { return Convert.ToString(GetData(SecMenuTypeTable.C_IS_DELETE)); }
            set { SetData(SecMenuTypeTable.C_IS_DELETE, value); }
        }

        #endregion
    }


}	


